<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "ch_items".
 *
 * @property integer $item_id
 * @property integer $hub_pid
 * @property integer $nvd_pid
 * @property integer $another_id
 * @property string $product
 * @property string $vendor
 * @property integer $type
 * @property integer $status
 * @property string $author
 * @property integer $update_time
 */
class ChItems extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'ch_items';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['hub_pid', 'nvd_pid', 'product', 'vendor'], 'required'],
            [['hub_pid', 'nvd_pid', 'another_id', 'type', 'status', 'update_time'], 'integer'],
            [['product', 'vendor'], 'string', 'max' => 100],
            [['git_url'], 'string', 'max' => 255],
            [['author'], 'string', 'max' => 50],
            [['remark'], 'string'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'item_id' => 'Item ID',
            'hub_pid' => 'Hub Pid',
            'nvd_pid' => 'Nvd Pid',
            'another_id' => '运营 excel 中ID',
            'product' => 'Product',
            'vendor' => 'Vendor',
            'type' => '1 存在CPE 2不存在Cpe',
            'status' => 'Status',
            'author' => 'Author',
            'git_url' => 'git地址/官方下载列表页',
            'remark' => '备注',
            'update_time' => 'Update Time',
        ];
    }



}
